package com.oocl.protocol;

import java.util.List;
import java.util.Date;

public class Protocol {
	private int type;
	private String msg;
	private String from;
	private String to;
	private Date time;
	private List<String> onlineList;
	
	public Protocol() {
		super();
	}
	public Protocol(int type, String msg, String from, String to, Date time,
			List<String> onlineList) {
		super();
		this.type = type;
		this.msg = msg;
		this.from = from;
		this.to = to;
		this.time = time;
		this.onlineList = onlineList;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public List<String> getOnlineList() {
		return onlineList;
	}
	public void setOnlineList(List<String> onlineList) {
		this.onlineList = onlineList;
	}
	
}
